package com.food.platformmsgmanagement.domain;

import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Embedded;

import java.util.UUID;

/**
 * 美食id值对象
 * @author 24270
 */
public class AlimentId {
    @Column(value = "id")
    private String value;

    public AlimentId() {
        this.value = UUID.randomUUID().toString();
    }

    public String value() {
        return this.value;
    }

    public AlimentId nextId() {
        return new AlimentId();
    }

    public void setId(String id) {
        this.value = id;
    }
}
